<?php

abstract class base_dao_controller_Controller{
	private $_data;
	public function setData($Controller_Model_Data){
		$this->_data = $Controller_Model_Data;
	}
	
	public function response(){
		$d = $this->_data->getVar();
		if(isset($d)){
			return $d;
		}
		return null;
	}
	
	public function responseJson(){
		return  json_encode($this->getVar());
	}
}